package freeCellDataStructures;

import freeCellBackend.Card;


public class Cell {
	private Card c;
	
	public Cell(){
		c = null;
	}
	
	public boolean add(Card card) {
		if(c == null){
			c = card;
			return true;
		}
		return false;
	}
	
	public Card remove() {
		Card temp = c;
		c = null;
		return temp;
	}
	
	public boolean contains(Card c) {
		if(this.c == null) {
			return false;
		} else if(this.c.equals(c)) {
			return true;
		}
		return false;
	}
	
	public Card get() {
		return c;
	}
}
